#include <iostream>
#include <vector>

using namespace std;
class Solution
{
public:
    int sumBase(int n, int k)
    {
        int ans = 0;
        while (n)
        {
            ans += n % k;
            n /= k;
        }
        return ans;
    }
};
int main()
{

    system("pause");
    return 0;
}
